package zhang.com.ssm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import zhang.com.ssm.mapper.UserMapper;
import zhang.com.ssm.po.UserPo;
import zhang.com.ssm.service.UserService;


@Service
public class UserServiceImpl implements UserService {
	@Autowired
    public UserMapper userMap;
	
	
	@Override
	public void insertUser(UserPo user) {
		userMap.insertUser(user);
	}

	@Override
	public UserPo selectUserByCount(int count) {
		UserPo use=userMap.selectUserByCount(count);
		return use;
	}

	@Override
	public UserPo selectUserById(int id) {
		
		return userMap.selectUserById(id);
	}

}
